package com.eorchis.module.trainingquestionnaire.domain;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.eorchis.utils.utils.PropertyUtil;

public class ClassQuestionnaireSummary {

	private String questionnaireName;//问卷名称
	private String startDate;//开班时间
	private String classCourseId;//课程ID
	private String ministrieName;//承办部委
	private String sponsorName;//主办部委
	private String className;//培训班名称
	private String questionName;//试题名称
	private List<String> questionNames;//试题名称们
	private List<Double> averages;//试题平均分们
	private List<String> questionAnswers;//问答题名称们
	private List<String> questionAnswerTexts;//问答题名称们
	private String questionAnswer;//问答题名称们
	private String questionAnswerText;//问答题名称们
	private String courseName;//课程名称
	private String speaker;//授课教师
	private String questionsProblemSets;//题组名称
	private Integer userCount;//总人数
	private Integer assCount;//参评人数
	private Integer traiCount;//参训人数
	private Double average;//平均分
	private Integer count;//总分
	private String recoveryRate;//评估表回收率
	private String questionType;//试题类型
	private String classId;//班级ID
	private String questionId;//试题ID
	private String assCountRate;//参评率
	private Integer ROWNUM_;
	private String averageStr;
	private Double allAverage;//总体平均分
	private Integer questionnaireMethod;//评估方式
	private Date createDate;//创建时间
	private String userId;//学员ID
	public String getQuestionnaireName() {
		return questionnaireName;
	}
	public void setQuestionnaireName(String questionnaireName) {
		this.questionnaireName = questionnaireName;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getMinistrieName() {
		return ministrieName;
	}
	public void setMinistrieName(String ministrieName) {
		this.ministrieName = ministrieName;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getQuestionName() {
		return questionName;
	}
	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}
	public String getQuestionsProblemSets() {
		return questionsProblemSets;
	}
	public void setQuestionsProblemSets(String questionsProblemSets) {
		this.questionsProblemSets = questionsProblemSets;
	}
	public Integer getUserCount() {
		return userCount;
	}
	public void setUserCount(BigInteger userCount) {
		this.userCount = userCount.intValue();
	}
	public Integer getAssCount() {
		return assCount;
	}
	public void setAssCount(BigInteger assCount) {
		this.assCount = assCount.intValue();
	}
	public Integer getTraiCount() {
		return traiCount;
	}
	public void setTraiCount(BigInteger traiCount) {
		this.traiCount = traiCount.intValue();
	}
	public Double getAverage() {
		return average;
	}
	public void setAverage(String average) {
		this.average = Double.valueOf(average);
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(BigInteger count) {
		this.count = count.intValue();
	}
	public List<String> getQuestionNames() {
		if(!PropertyUtil.objectNotEmpty(questionNames)){
			questionNames=new ArrayList<String>();
		}
		return questionNames;
	}
	public void setQuestionNames(List<String> questionNames) {
		this.questionNames = questionNames;
	}
	public List<Double> getAverages() {
		if(!PropertyUtil.objectNotEmpty(averages)){
			averages=new ArrayList<Double>();
		}
		return averages;
	}
	public void setAverages(List<Double> averages) {
		this.averages = averages;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public String getSpeaker() {
		return speaker;
	}
	public void setSpeaker(String speaker) {
		this.speaker = speaker;
	}
	public List<String> getQuestionAnswers() {
		if(!PropertyUtil.objectNotEmpty(questionAnswers)){
			questionAnswers=new ArrayList<String>();
		}
		return questionAnswers;
	}
	public void setQuestionAnswers(List<String> questionAnswers) {
		this.questionAnswers = questionAnswers;
	}
	public List<String> getQuestionAnswerTexts() {
		if(!PropertyUtil.objectNotEmpty(questionAnswerTexts)){
			questionAnswerTexts=new ArrayList<String>();
		}
		return questionAnswerTexts;
	}
	public void setQuestionAnswerTexts(List<String> questionAnswerTexts) {
		this.questionAnswerTexts = questionAnswerTexts;
	}
	public String getClassCourseId() {
		return classCourseId;
	}
	public void setClassCourseId(String classCourseId) {
		this.classCourseId = classCourseId;
	}
	public String getRecoveryRate() {
		return recoveryRate;
	}
	public void setRecoveryRate(String recoveryRate) {
		this.recoveryRate = recoveryRate;
	}
	public String getQuestionType() {
		return questionType;
	}
	public void setQuestionType(String questionType) {
		this.questionType = questionType;
	}
	public String getClassId() {
		return classId;
	}
	public void setClassId(String classId) {
		this.classId = classId;
	}
	public String getQuestionAnswer() {
		return questionAnswer;
	}
	public void setQuestionAnswer(String questionAnswer) {
		this.questionAnswer = questionAnswer;
	}
	public String getQuestionAnswerText() {
		return questionAnswerText;
	}
	public void setQuestionAnswerText(String questionAnswerText) {
		this.questionAnswerText = questionAnswerText;
	}
	public String getQuestionId() {
		return questionId;
	}
	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	public String getAssCountRate() {
		return assCountRate;
	}
	public void setAssCountRate(String assCountRate) {
		this.assCountRate = assCountRate;
	}
	public Integer getROWNUM_() {
		return ROWNUM_;
	}
	public void setROWNUM_(Integer rOWNUM_) {
		ROWNUM_ = rOWNUM_;
	}
	public String getAverageStr() {
		return averageStr;
	}
	public void setAverageStr(String averageStr) {
		if(PropertyUtil.objectNotEmpty(averageStr)){
			String []a=averageStr.split(",");
			for(String aa:a){
				getAverages().add(Double.valueOf(aa));
			}
		}
		this.averageStr = averageStr;
	}
	public Double getAllAverage() {
		return allAverage;
	}
	public void setAllAverage(Double allAverage) {
		this.allAverage = allAverage;
	}
	public String getSponsorName() {
		return sponsorName;
	}
	public void setSponsorName(String sponsorName) {
		this.sponsorName = sponsorName;
	}
	public Integer getQuestionnaireMethod() {
		return questionnaireMethod;
	}
	public void setQuestionnaireMethod(BigInteger questionnaireMethod) {
		this.questionnaireMethod = questionnaireMethod.intValue();
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
}
